package com.fzj.example.io;

import java.io.Serializable;

/**
 * ClassName: Student
 * date: 2019/11/8 14:32
 * Description: TODO
 *
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 2909133349122974395L;
    private String name;
    private String address;
    private Teacher teacher;
    public Student(){}

    public Student(String name, String address, Teacher teacher) {
        this.name = name;
        this.address = address;
        this.teacher = teacher;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
